package cn.hnc.checkapi.bean.datatmp;

import java.io.Serializable;

public class UserData implements Serializable {
   private static final long serialVersionUID = -8718377005706700417L;
   private String username;
   private String password;
   private String newPassword;

   public String getUsername() {
      return this.username;
   }

   public String getPassword() {
      return this.password;
   }

   public String getNewPassword() {
      return this.newPassword;
   }

   public void setUsername(final String username) {
      this.username = username;
   }

   public void setPassword(final String password) {
      this.password = password;
   }

   public void setNewPassword(final String newPassword) {
      this.newPassword = newPassword;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof UserData)) {
         return false;
      } else {
         UserData other = (UserData)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label47: {
               Object this$username = this.getUsername();
               Object other$username = other.getUsername();
               if (this$username == null) {
                  if (other$username == null) {
                     break label47;
                  }
               } else if (this$username.equals(other$username)) {
                  break label47;
               }

               return false;
            }

            Object this$password = this.getPassword();
            Object other$password = other.getPassword();
            if (this$password == null) {
               if (other$password != null) {
                  return false;
               }
            } else if (!this$password.equals(other$password)) {
               return false;
            }

            Object this$newPassword = this.getNewPassword();
            Object other$newPassword = other.getNewPassword();
            if (this$newPassword == null) {
               if (other$newPassword != null) {
                  return false;
               }
            } else if (!this$newPassword.equals(other$newPassword)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof UserData;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = 1;
      Object $username = this.getUsername();
      result = result * 59 + ($username == null ? 43 : $username.hashCode());
      Object $password = this.getPassword();
      result = result * 59 + ($password == null ? 43 : $password.hashCode());
      Object $newPassword = this.getNewPassword();
      result = result * 59 + ($newPassword == null ? 43 : $newPassword.hashCode());
      return result;
   }

   public String toString() {
      return "UserData(username=" + this.getUsername() + ", password=" + this.getPassword() + ", newPassword=" + this.getNewPassword() + ")";
   }
}
